package com.gem.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author hhhy
 * @since 2020-02-22
 */
@Data
public class AoaUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    private String address;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;

    private String email;

    private Integer fatherId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hireTime;

    private String imgPath;

    private Integer isLock;

    private String lastLoginIp;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLoginTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;

    private Integer modifyUserId;

    private String password;

    private String realName;

    private Float salary;

    private String userSchool;

    private String sex;

    private String userEdu;

    private String userName;

    private String userTel;

    private Integer deptId;

    private Integer positionId;

    private Integer roleId;

    private Integer superman;

    private Integer holiday;

    private Integer del_flag;

    @TableField(exist = false)
    private List<AoaRole> roles;
    @TableField(exist = false)
    private AoaRole role;
    @TableField(exist = false)
    private AoaDept aoaDept;
    @TableField(exist = false)
    private AoaPosition position;


}
